[−][src]Crate bitcoin_hashes
Rust Hashes Library
This is a simple, no-dependency library which implements the hash functions needed by Bitcoin. These are SHA256, SHA256d, and RIPEMD160. As an ancillary thing, it exposes hexadecimal serialization and deserialization, since these are needed to display hashes anway.
Re-exports
pub use hmac::Hmac; |
pub use hmac::HmacEngine; |
pub use error::Error; |
Modules
cmp | Useful comparison functions. |
error | Error Type |
hash160 | HASH160 (SHA256 then RIPEMD160) |
hex | Hex encoding and decoding |
hmac | HMAC support |
ripemd160 | RIPEMD160 |
sha1 | SHA1 |
sha256 | SHA256 |
sha256d | SHA256d |
sha512 | SHA512 |
Traits
Hash | Trait which applies to hashes of all types |
HashEngine | A hashing engine which bytes can be serialized into. It is expected
to implement the |